﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PhilippDLL;

namespace OOPPhilippLaba1
{
    class Program
    {
        static void Main(string[] args)
        {
            Diploma first = new Diploma();
            Diploma second = new Diploma("Pasha");
            Diploma thord = new Diploma("Dima","Mathemetic");
            Diploma forth = new Diploma("Dinis", "Kulture", 5);
            Diploma fifth = new Diploma("Masha","Music",10,100);

            Car lada = new Car("Lada",4,200,100);
            Car bmw = new Car("BMW", 8, 500, 200);

            PrintClass(first);
            PrintClass(second);
            PrintClass(thord);
            PrintClass(forth);
            PrintClass(fifth);

            PrintStruct(lada);
            PrintStruct(bmw);


        }
        public static void PrintClass(Diploma diplom)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Имя: {0}, Тема диплома: {1}, Кол-во страниц: {2} Цена: {3}",diplom.clientName,diplom.topicOfDiploma,diplom.amountOfPage,diplom.price);
            Console.ResetColor();
            Console.ReadLine();
        }

        public static void PrintStruct(Car input)
        {
            Console.WriteLine("Name: {0}, Amount Of Whiles: {1}, Hight: {2}, Weight: {3}", input.name, input.amountOfWhiles, input.hight, input.weight);
            Console.ReadLine();
        }
    }
}
